package com.neu.question.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class EndUser {
    private String username;
    private String phoneNum;

    private Integer id;


    private String userId;


    private String tenantsId;


    private String questionnaireNum;


    private String useProject;


    private String useQuestionnaire;


    private String useGroup;


    private String useAnswer;

    private String status;

    public EndUser create(EndUserInfo endUser, String username, String phoneNum, String status) {
        EndUser e = new EndUser();
        e.setId(endUser.getId());
        e.setUserId(endUser.getUserId());
        e.setTenantsId(endUser.getTenantsId());
        e.setQuestionnaireNum(endUser.getQuestionnaireNum());
        e.setUseQuestionnaire(endUser.getUseQuestionnaire());
        e.setUseProject(endUser.getUseProject());
        e.setUseGroup(endUser.getUseGroup());
        e.setUseAnswer(endUser.getUseGroup());
        e.setUsername(username);
        e.setPhoneNum(phoneNum);
        e.setStatus(status);
        return e;
    }
}
